/*
Copyright (c) [2019年5月1日] [吴超]
[MBT_Studio] is licensed under Mulan PSL v2.
You can use this software according to the terms and conditions of the Mulan PSL v2.
You may obtain a copy of Mulan PSL v2 at:
		 http://license.coscl.org.cn/MulanPSL2
THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
See the Mulan PSL v2 for more details.
*/
#include "操作环境管理.h"

#include <set>

#include "框架/工作区/视频图像视口/视频视口.h"
#include "框架/工作区/ui节点视口.h"
#include "工作区/3D工作区/3D视口工作区.h"
#include "工作区/节点视口/节点视口工作区.h"



static std::set<C_节点基类*> g图像区焦点节点;
static std::set<C_节点基类*> g曲线区焦点节点;
static std::set<C_节点基类*> g关键帧区焦点节点;




void f_区管理_设置当前操作图像(C_节点基类* node) {
	g图像区焦点节点.insert(node);

	uint32 num = node->f_get输出插座Num();
	for (uint32 i = 1; i < num; ++i) {
		auto* socket = node->f_get输出插座(i);
		//auto* tex = socket->f_get纹理();

		//if (tex) {
			//f_图像View_设置显示纹理(tex);
		//}
	}

	if (num > 1) {

	}

}

void f_图像View_设置当前操作图像(std::vector<C_节点基类*>& node) {
	
}

void f_区管理_设置当前操作视频(C_节点基类* node) {
	f_图像View_设置操作视频(node);

}

void f_区管理_设置当前操作节点(C_节点基类* node) {
	
}

void f_图像View_设置当前操作物体(C_节点基类* node) {
	
}










void f_NodeView_安装节点树后端(C_节点树* tree) {
	C_Widget* treeView = f_工作区_get节点视口(0);
	C_节点视口* 节点view = dynamic_cast<C_节点视口*>(treeView);

	if (tree && 节点view) {
		节点view->f_绑定节点树(tree);
	}

}





